#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20250523.sql ./mysql/db
cp ../sql/ry_config_20250224.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../smartmedical-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy smartmedical-gateway "
cp ../smartmedical-gateway/target/smartmedical-gateway.jar ./smartmedical/gateway/jar

echo "begin copy smartmedical-auth "
cp ../smartmedical-auth/target/smartmedical-auth.jar ./smartmedical/auth/jar

echo "begin copy smartmedical-visual "
cp ../smartmedical-visual/smartmedical-monitor/target/smartmedical-visual-monitor.jar  ./smartmedical/visual/monitor/jar

echo "begin copy smartmedical-modules-system "
cp ../smartmedical-modules/smartmedical-system/target/smartmedical-modules-system.jar ./smartmedical/modules/system/jar

echo "begin copy smartmedical-modules-file "
cp ../smartmedical-modules/smartmedical-file/target/smartmedical-modules-file.jar ./smartmedical/modules/file/jar

echo "begin copy smartmedical-modules-job "
cp ../smartmedical-modules/smartmedical-job/target/smartmedical-modules-job.jar ./smartmedical/modules/job/jar

echo "begin copy smartmedical-modules-gen "
cp ../smartmedical-modules/smartmedical-gen/target/smartmedical-modules-gen.jar ./smartmedical/modules/gen/jar

